<?php
class Cl_CategoryManager extends WdkManager 
{
	/**
	 * 생성자
	 */
	function __construct()
	{
		parent::__construct();
		$this->dbo = Wdk::model(basename(__DIR__));
		$this->filter	= array("`category_del_flag` = 'F'");
		$this->order	= array("`fk_bbs_seq` ASC", "`category_index` ASC");
	}
	
	protected function newObj()
	{
		return Wdk::get(basename(__DIR__));
	}
	
	public function loadAll()
	{
		try
		{
			$this->listsize = 99999;
			$this->page = 1;
			parent::load();			
		}
		catch(NoRecordException $e)
		{
			
		}
	}
	
	public function loadByBBsSeq($bbs_seq=0)
	{
		try
		{
			$this->listsize = 99999;
			$this->page		= 1;
			$this->where	= array("`fk_bbs_seq` = {$bbs_seq}");
			parent::load();			
		}
		catch(NoRecordException $e)
		{
			
		}
	}
}